resource "alicloud_eip" "main" {
  count = var.eip_number
  address_name         = format("%s%03d", var.name, count.index + 1)
  isp                  = var.isp
  internet_charge_type = var.internet_charge_type
  bandwidth            = var.bandwidth
  deletion_protection  = var.deletion_protection
  tags = merge(
  {
    "Name" = format("%s", var.name)
  },
  var.tags,
  )
}